! Configuration File for keepalived

global_defs {
#    notification_email {
#      acassen@firewall.loc
#      failover@firewall.loc
#      sysadmin@firewall.loc
#    }
#    notification_email_from Alexandre.Cassen@firewall.loc
#    smtp_server {{ ansible_default_ipv4.address }}
#    smtp_connect_timeout 30
   router_id LVS_DEVEL
   vrrp_skip_check_adv_addr
#    vrrp_strict
   vrrp_garp_interval 0
   vrrp_gna_interval 0
}

vrrp_instance VI_2 {
    state {{ node_state }}
    interface {{ ansible_default_ipv4.alias }}
    virtual_router_id 61
    priority {{ node_priority }}
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 666888369
    }
    virtual_ipaddress {
        {{ apiserver_ip }}
    }
    track_script {
        check_haproxy
    }
}
